import { BasicColumn, FormSchema } from '@apps/antd-admin/src/components/table';
import { RenderType } from '@pkg/setting';

export const columns: BasicColumn[] = [
  {
    title: '会员uuidStr',
    dataIndex: 'uuidStr',
    width: 150,
  },
  {
    title: '姓名',
    dataIndex: 'name',
    width: 120,
  },
  {
    title: '证件号',
    dataIndex: 'idCardNum',
    width: 120,
  },
  {
    title: '使用状态',
    dataIndex: 'useStatus',
    width: 120,
    dictData: [
      { label: '未使用', value: 0 },
      { label: '已使用', value: 1 },
      { label: '退款申请中', value: 2 },
      { label: '已退', value: 3 },
    ],
    renderType: RenderType.DICT,
  },
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'name',
    label: '姓名',
    component: 'Input',
    colProps: { span: 4 },
  },
];
